﻿using RAP.Framework.Libary.DomTemplateBuilder.Interface;
using static RAP.Framework.Libary.DomTemplateBuilder.Consts;
using RAP.Framework.Libary.DomTemplateBuilder.Attributes;
using RAP.Framework.Libary.DomTemplateBuilder.Handler.Cache;

namespace RAP.Framework.Libary.DomTemplateBuilder.Element.Cache
{
	/// <summary>
	/// 获取指定key的缓存值并保存到指定属性中
	/// </summary>
	[TagHandler( "Cache.Get", typeof( GetCacheHandler ) )]
	public class GetCache : CacheElementBase, IDefaultValueElement
    {

        public GetCache( )
        {
            this[ VALUE_STYLE_FIELD ] = "Context";
        }

        /// <summary>
        /// “默认值”节点
        /// </summary>
        public virtual DefaultValue DefaultValue
        {
            get;
            set;
        }
    }
}
